package com.androidtestintent2.servicetest;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/9/24 0024.
 */

public class NoSeverice extends Service {
    @Override
    public IBinder onBind(Intent view) {
        return null;
    }

    public void onCreate(){
        Log.e("KKK","FFFF");
        MainActivity app=MainActivity.getAppRef();
        app.bt("from Noseverice");
        Toast.makeText(this,"这是系统自带的service",Toast.LENGTH_LONG).show();
    }
}
